package com.tanhua.dubbo.api;

import com.aliyunsms.template.SmsTemplate;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = AppServerApplication01.class)
public class AliyunSMSTemplateTest01 {

    @Autowired
    private SmsTemplate smsTemplate;

    @Test
    public void testSendSms() throws Exception{
        smsTemplate.sendSms("17602128959","369258");
        System.out.println("ok");
    }


}
